#!/usr/bin/env bash
ps -ef |egrep "php .*lot_number.php" | awk '{print $2}' | xargs kill
nohup `which php` `pwd`/lot_number.php >> /tmp/lot_number.log &